package com.day0908;

import java.util.Scanner;

public class Text2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("今天任务合格了吗？（y/n）:");
        String answer = in.next();
        while (answer.equals("n")){
            System.out.println("上午阅读教材，掌握理论！");
            System.out.println("下午上机！");
            System.out.print("今天任务合格了吗？（y/n）:");
            answer = in.next();
        }

    }
}
